package by.grsu.hd.devices;

import by.grsu.hd.model.IMediaPlayer;

public class MediaPlayer implements IMediaPlayer {

	final String audio = "mp3";
	final String video = "avi";
	
	private String[] aFiles = {"Track 1", "Track 2", "Track 3", "Track 4", "Track 5"};
	private String[] vFiles = {"Video 1", "Video 2", "Video 3", "Video 4", "Video 5"};
	
	private String name, proces;
	private int id;

	public MediaPlayer(){
	}
	
	public void getFormatFile()
	{
		System.out.println("This is Player play: "+ audio +" and "+ video+"\n");
	}
	
	@Override
	public void setFile(String name) {
		// TODO Auto-generated method stub
		this.name = name;
	}

	@Override
	public String getFile() {
		// TODO Auto-generated method stub
		return name;
	}

	@Override
	public void setControl(int id, String name) {

		this.id = id;
		//this.name = proces;
		// TODO Auto-generated method stub

	}

	@Override
	public String getControl() {
		switch (id)
		{
		case 1: proces="Play";
			break;
		case 2: proces="Pause";
			break;
		case 3: proces="Stop";
			break;
		default:
			proces = "Error!!";
		}
		// TODO Auto-generated method stub
		return proces;
	}

	@Override
	public String[] getAFiles() {
		// TODO Auto-generated method stub
		return aFiles;
	}

	@Override
	public String[] getVFilse() {
		// TODO Auto-generated method stub
		return vFiles;
	}


}
